#include <stdio.h>
#include <wiringPi.h>

int main(int argc, char *argv[])
{
    if(wiringPiSetup() == -1)    //初始化必须写在最前边
	{
        printf("setup wiringPi failed !");
        return 1;
    }
    printf("Hello World!\n");

    pinMode(5, OUTPUT);			//设置GPIO.5为输出模式
    digitalWrite(5, HIGH);      //GPIO.5输出高电平
    while(1)					//进入主逻辑循环
    {
    }
    return 0;
}
